#!/bin/sh

set -e

. .svn/debianpaket.de

TMPDIR=$(mktemp -d)
cp -a *.html *.css acpid screenshots svn-buildpackage $TMPDIR
find $TMPDIR -wholename '*.svn*' -delete

cat <<.EOF | lftp
open -u $USER,$PASSWD $NAME
mirror -R -e -n -p $TMPDIR $DIR
close
exit
.EOF

rm -rf $TMPDIR

